<div class="panel panel-default userinfo">
  <div class="panel-body vcard clearfix">
    <ul class="list-group">
      <% if !@user.company.blank? %>
        <li class="adr list-group-item">
          <label><%= t("users.company")%>:</label>
          <span class="org"><%= @user.company %></span>
        </li>
      <% end %>

      <% if !@user.email.blank? && @user.email_public %>
      <li class="list-group-item">
        <label>Email:</label>
        <span><%= auto_link @user.email %></span>
      </li>
      <% end %>

      <% if !@user.twitter.blank? %>
        <li class="list-group-item">
          <label><%= t("users.twitter")%>:</label>
          <span><%= link_to "@#{@user.twitter}", @user.twitter_url, class: "twitter", rel: "nofollow" %></span>
        </li>
      <% end %>

      <% if !@user.website.blank? %>
        <li class="list-group-item">
          <label><%= t("users.personal_website")%>:</label>
          <span><%= render_user_personal_website(@user)%></span>
        </li>
      <% end %>

      <% if !@user.tagline.blank? %>
        <li class="list-group-item">
          <label><%= t("users.signature")%>:</label>
          <span><%= render_user_tagline(@user) %></span>
        </li>
      <% end %>

    </ul>
  </div>


</div>

<% cache([@user, "bio-markdown"]) do %>
  <% if !@user.bio.blank? %>
    <div class="panel panel-default bio">
      <div class="panel-heading">个人介绍</div>
      <div class="panel-body markdown">
        <%= markdown(@user.bio) %>
      </div>
    </div>
  <% end %>
<% end %>